package ysm.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import ysm.service.VisualizateService;

@RestController
@RequestMapping("/public")
public class VisualizateController {

	@Autowired
	private VisualizateService visualizateService;
	
	@RequestMapping("/loadAllGraduateData")
	public List loadAllGraduateData() {
		return visualizateService.VisualizateList();
	}
	
	@RequestMapping("/salaryAndGYVis")
	public List salaryAndGYVis() {
		return visualizateService.salaryAndGYVis();
	}

	@RequestMapping("/personCountAndGYVis")
	public List personCountAndGYVis() {
		return visualizateService.personCountAndGYVis();
	}
	
	@RequestMapping("/salaryAndEDVis")
	public List salaryAndEDVis() {
		return visualizateService.salaryAndEDVis();
	}
	
	@RequestMapping("/personCountAndEDVis")
	public List personCountAndEDVis() {
		return visualizateService.personCountAndEDVis();
	}
	
	@RequestMapping("/salaryAndPFVis")
	public List salaryAndPFVis() {
		return visualizateService.salaryAndPFVis();
	}
	
	@RequestMapping("/personCountAndPFVis")
	public List personCountAndPFVis() {
		return visualizateService.personCountAndPFVis();
	}
	
}
